<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>寻找Go嗨皮天地</title>
    <meta name="viewport"
          content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
    <link href="/GoHipy/Public/css/bootstrap.css" rel="stylesheet">
    <link href="/GoHipy/Public/css/swiper.min.css" rel="stylesheet">
    <link href="/GoHipy/Public/css/iconfont.css" rel="stylesheet">
    <link href="/GoHipy/Public/css/basic.css" rel="stylesheet">
    <style>
    </style>
</head>

<script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    // 微信JSSDK异常处理
    wx.error(function(res) {
        alert('wx.error: ' + JSON.stringify(res));
    });
    // 注入JSSDK配置参数，默认开启所有接口权限
    wx.config(<?php echo (json_encode($options )); ?>)
    ;
</script>

<body style="padding-bottom: 20%" id="myBody" data-app="/GoHipy/Home/Index/upload" data-img="/GoHipy/Public/images/105364946478671911.jpg" data-root="/GoHipy" data-sub="/GoHipy/Home/Index/submitMsg" data-homeUrl="<?php echo U('Index/index?id='.$act[id]);?>" data-userId="<?php echo ($user_id); ?>" data-actId="<?php echo ($act['id']); ?>" data-openId="<?php echo ($openid); ?>">
<div class="line_main" style="background: #fff">
    <div class="line_title">排行榜</div>
    <div class="line_info">
        <div class="line_info_title row" style="background-color: #f7f7f7">
            <ul class="list-inline" >
                <li style="text-align: right; width: 20%"><span
                        style="width: 45%; display: inline-block;"></span><span
                        style="width: 53%; display: inline-block; text-align: center">名次</span></li>
                <li></li>
                <li style="margin-left: -18%">封面图</li>
                <li>编号</li>
                <li>姓名</li>
                <li>票数</li>
            </ul>
        </div>
        <div class="line_info_people row">
            <?php if(is_array($apply)): $k = 0; $__LIST__ = $apply;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$apply): $mod = ($k % 2 );++$k;?><ul class="list-inline">
                    <li style="text-align: right; padding-left: 3%; width: 20%"><span
                            class="glyphicon"
                            style="width: 45%; line-height: 0px; display: inline-block; position: absolute; left: 0px; top: 40%; transform: translateY(-50%);">

                        <?php if($k == 1): ?><img
                                src="/GoHipy/Public/images/star_1.png" style="width: 61%;">
                            <?php elseif($k == 2): ?><img
                                    src="/GoHipy/Public/images/star_2.png" style="width: 61%;">
                            <?php elseif($k == 3): ?> <img
                                    src="/GoHipy/Public/images/star_3.png" style="width: 61%;"><?php endif; ?>
                        </span><span
                            style="width: 53%; display: inline-block; text-align: center"><?php echo ($k); ?></span></li>
                    <li><img src="/GoHipy<?php echo ($apply[pictures][0]); ?>"
                             style="max-width: 100%;"></li>
                    <li><?php echo ($apply["id"]); ?></li>
                    <li><?php echo ($apply["name"]); ?></li>
                    <li><?php echo ($apply["vote_num"]); ?></li>
                </ul><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
</div>
<div class="footer text-center">
    <div class="row">
        <div class="col-xs-3 list-item">
            <a href="<?php echo U('Index/index?id='.$act[id]);?>">
                    <span class="iconfont icon-home ">
         </span>
                <p>首页</p>
            </a>
        </div>
        <div class="col-xs-3  list-item">
            <a href="<?php echo U('Index/apply?id='.$act[id]);?>">
                    <span class="iconfont icon-apply">

         </span>
                <p>报名</p>
            </a>
        </div>
        <div class="col-xs-3  list-item">
            <a href="<?php echo U('Index/line?id='.$act[id]);?>" class="color">
                      <span class="iconfont icon-line">

         </span>
                <p>排行</p>
            </a>
        </div>
        <div class="col-xs-3  list-item">
            <a href="<?php echo U('Index/explain?id='.$act[id]);?>">
                     <span class="iconfont icon-explain">

         </span>
                <p>规则</p>
            </a>
        </div>
    </div>
</div>
</body>
<script src="/GoHipy/Public/js/libs/jquery.min.js"></script>
<script src="/GoHipy/Public/js/libs/swiper.min.js"></script>
<!--<script src="/GoHipy/Public/js/libs/bootstrap.min.js"></script>-->
<script src="/GoHipy/Public/js/libs/basic.js"></script>
</html>